package com.gxa.ssm340.common;

/**
 * @author Lenovo
 */

public enum ErrorCode {
    /**
     *
     */
    NULL_USER(50001,"该用户不存在"),
    /**
     *
     */
    NULL_FIELD(50002,"特征值不允许为空"),
    /**
     *
     */
    WRONG_REG_PHONE(50003,"该手机号已经被注册"),
    WRONG_PHONE(50004,"手机号输入不正确"),
    FAILD_LOGIN(50005,"登录失败"),
    NULL_TOKEN(50006,"缺少token权限信息"),
    LACK_URL(50007,"缺少访问权限"),
    EXPIRE_TOKEN(50008,"token已经过期"),
    VALIED_TOKEN(50009,"token校验不通过"),
    VALIED_PERMISSION(50010,"没有操作权限"),
    ;

    private Integer code;

    private String msg;

    ErrorCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
